<footer class="main-footer footer-type-1 text-xs">
	<div id="footer-tools" class="d-flex flex-column">
		<a href="javascript: void(0);" id="to-up" class="btn rounded-circle go-up m-1" data-toggle="tooltip" data-placement="left" title="返回顶部">
			<i class="fas fa-chevron-up"></i>
		</a>

		{{- $displayMode := int $.Site.Params.displayMode | default 0 -}}
		{{- if or (lt $displayMode 0) (gt $displayMode 4) -}}
			{{- $displayMode = 0 -}}
		{{- end -}}		
		<a href="javascript: void(0);" id="NightMode" data="{{ $displayMode }}" class="btn rounded-circle switch-dark-mode m-1" data-toggle="tooltip" data-placement="left" title="日间模式">
			<i class="fas fa-sun mode-ico"></i>
		</a>
	</div>
    {{ with $.Site.Params.Footer }}
	<div class="footer-inner">
		<div class="footer-text">
			{{ $copyright := .copyright | default "&copy; {year} Powered by <a rel='noopener' href='https://gohugo.io/' target='_blank'>Hugo</a> & <a rel='noopener' href='https://github.com/idevsig/navside' target='_blank'>NavSide</a>" }}
            {{ replace $copyright "{year}" now.Year | markdownify }}
		</div>
	</div>
    {{ end }}
</footer>